home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
UTILSTEM
/
UTIL2.LZH
/
COLOR.DOC
< prev
next >
Wrap
Text File
|
1986-11-05
|
3KB
|
60 lines
HOW TO USE COLOR.COM
COLOR.COM is a program which sets screen colors on a color monitor.
Unlike most color control programs this program intercepts the ROM
video INT 10H routine, so that the colors are not lost when the
screen is cleared. This program is memory resident (the resident
portion is only 83 bytes) and redefines the default white on black
color attributes.
The author of this program is Charlie Butrico of South Plainfield,
New Jersey. The BASIC source code to make COLOR.COM appeared in
the September 17, 1985 issue of PC Magazine, Volume 4, Number 19.
To set new default colors, enter the following command at the DOS
prompt:
A>color fg/bg br
Note that the foreground/background color combination (fg/bg) is a
decimal value from 0 to 255 and the border color (br) is a decimal
value from 0 to 15. Entering one number will change the
foreground/background colors only.
The decimal values of the color attributes are as follows:
0 Black 8 Gray
1 Blue 9 Light Blue
2 Green 10 Light Green
3 Cyan 11 Light Cyan
4 Red 12 Light Red
5 Magenta 13 Light Magenta
6 Brown 14 Yellow
7 White 15 High-intensity White
To determine the decimal value of the fg/bg color, multiply the
number of the desired background color by 16 and add the desired
foreground (text) color. For the decimal value of the the border
color, just use the color number. Some examples follow:
color 6 Brown text, Black bg, Border unchanged
color 113 3 Blue text, White bg, Cyan border
color 25 7 Light blue text, blue bg, white border
color 7 0 White text, black background and border
An ideal way to set new default colors is to use a COLOR statement
in the AUTOEXEC.BAT file. The new colors will be displayed is
DOS, BASIC, or any program which does not specify color attributes.
When a program that defines screen colors such as Lotus 1-2-3 is
exited, the defined colors reappear since they are memory resident
until the colors are redefined by running COLOR.COM again or the
computer is turned off or rebooted. In a few cases the white on
black screen will come back such as after the screen is cleared
with a mode command or after running interrupt-intensive programs
such as Topview. When this happens a CLS command will bring the
colors back.
To print this file set the printer to the top of the page
and enter the following command:
A>copy COLOR.DOC prn